{% extends "base.html" %}

{% block content %}
<section class="products py-5">
    <div class="container">
        <h1 class="mb-4">我们的农产品</h1>
        <div class="row g-4">
            {% for product in products %}
            <div class="col-md-4">
                <div class="card h-100">
                    <img src="{{ product.image }}" class="card-img-top product-img" alt="{{ product.name }}">
                    <div class="card-body">
                        <h5 class="card-title">{{ product.name }}</h5>
                        <p class="card-text">{{ product.description }}</p>
                        <div class="d-flex justify-content-between align-items-center">
                            <span class="text-success fw-bold">{{ product.price }}</span>
                            <button class="btn btn-sm btn-agro">查看详情</button>
                        </div>
                    </div>
                </div>
            </div>
            {% endfor %}
        </div>
    </div>
</section>
{% endblock %}